package com.honeycomb.db.dao;

import java.util.List;

import com.honeycomb.article.SearchPattern;
import com.honeycomb.article.DataRef;
import com.honeycomb.article.PositionScope;
import com.honeycomb.article.dto.ArticleDetailMessageDto;
import com.honeycomb.article.dto.ArticleCatagory;
import com.honeycomb.article.dto.ArticleinfoDto;
import com.honeycomb.common.base.dao.BaseDao;
import com.honeycomb.utils.MyDateDTTM;

/**
 * 文章dao接口
 * 
 * @author Wangyu
 */
public interface ArticleinfoDao extends BaseDao{

	List<ArticleinfoDto> searchArticles(ArticleCatagory articleCatagory, PositionScope positionScope, SearchPattern searchPattern, 
												DataRef firstDataRef, int countLimit);

	List<ArticleDetailMessageDto> getDetailMessagesOfArticle(Long articleId, SearchPattern searchPattern, DataRef firstDataRef, int countLimit);

	void doSaveArticle(ArticleinfoDto articleInfo, ArticleDetailMessageDto detailMessage);
	
	void doSaveReply(ArticleDetailMessageDto detailMessage);

	void doChangeMessage(Long messageId, String summary, String summaryPicUrl, String content, String title, MyDateDTTM updateDateDTTM, String ip,Long userId);
	
	ArticleDetailMessageDto getDetailMessage(Long messageId);

	boolean doDeleteMessage(Long messageId,Long userId);
	
}
